﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
using System.Reflection;
using System.Diagnostics;

namespace IRC.IRepairClouds.DataLayer.Expressions
{
    public class MemberAssignmentBuilder<T, TP> : MemberBindingBuilder<T>
    {
        internal MemberAssignmentBuilder(MemberInfo member, ExpressionBuilder<TP> expression)
            : base(Expression.Bind(member, expression))
        {
        }

        internal MemberAssignmentBuilder(MethodInfo propertyAccessor, ExpressionBuilder<TP> expression)
            : base(Expression.Bind(propertyAccessor, expression))
        {
        }
    }
}
